const fs = require('fs')
//异步删除
console.log('异步删除开始')
fs.unlink('./e.json', (error) => {
    if(error){
        throw error;
    }
    console.log('异步删除成功')
})
console.log('异步删除结束')


//同步删除
console.log('同步删除开始')
fs.unlinkSync('./e.json', (error) => {
    if(error){
        throw error;
    }
    console.log('同步删除成功')
})
console.log('同步删除结束')